//-----------------------------------------------------------------------
// <copyright file="a_Products_Package_DetService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_Products_Package_DetService
    {
        #region a_Products_Package_Det

        public static void Createa_Products_Package_Det(a_Products_Package_Det a_Products_Package_Det)
        {            
            try
            {
                a_Products_Package_DetDAO a_Products_Package_DetDAO = new a_Products_Package_DetDAO();
                a_Products_Package_DetDAO.Createa_Products_Package_Det(a_Products_Package_Det);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_Products_Package_Det(a_Products_Package_Det a_Products_Package_Det)
        {            
            try
            {
                a_Products_Package_DetDAO a_Products_Package_DetDAO = new a_Products_Package_DetDAO();
                a_Products_Package_DetDAO.Updatea_Products_Package_Det(a_Products_Package_Det);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_Products_Package_Det(int id)
        {            
            try
            {
                a_Products_Package_DetDAO a_Products_Package_DetDAO = new a_Products_Package_DetDAO();
                a_Products_Package_DetDAO.Deletea_Products_Package_Det(id);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_Products_Package_Det Geta_Products_Package_Det(int id)
        {            
            try
            {
                a_Products_Package_DetDAO a_Products_Package_DetDAO = new a_Products_Package_DetDAO();
                return a_Products_Package_DetDAO.Geta_Products_Package_Det(id);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_Products_Package_DetCollection Geta_Products_Package_DetList(a_Products_Package_DetColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_Products_Package_DetDAO a_Products_Package_DetDAO = new a_Products_Package_DetDAO();
                return a_Products_Package_DetDAO.Geta_Products_Package_DetList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_Products_Package_DetCollection Geta_Products_Package_DetList(a_Products_Package_DetColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_Products_Package_DetDAO a_Products_Package_DetDAO = new a_Products_Package_DetDAO();
                return a_Products_Package_DetDAO.Geta_Products_Package_DetList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}